package behaviorType.command;

public class Main {

    public static void main(String[] args) {

        // 运动员
        Player player = new Player();

        // 命令动作
        ICommand beginCommand = new BeginCommandImpl(player);
        ICommand endCommand = new EndCommandImpl(player);

        // 裁判员
        Judger judger = new Judger();
        // 裁判员手里有这些命令
        judger.addCommand(beginCommand);
        judger.addCommand(endCommand);

        judger.execute();
    }
}
